<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/inc/taglib.inc" %>
<%@ include file="/WEB-INF/inc/script.inc" %>
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	<base href="${base}">
    <title>中金通 | eggs</title>

    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="font-awesome/css/font-awesome.css" rel="stylesheet">

    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">

</head>

<body class="gray-bg">


    <div class="middle-box text-center animated fadeInDown">
        <h1>hello word!</h1>
        <h3 class="font-bold">天王盖地虎</h3>
        <input type="password" id="key" name="key" class="form-control">
        <h3 class="font-bold"></h3>
        <input type="button" class="btn btn-primary" value="确定" onClick="clickHandler()">
    </div>

    <!-- Mainly scripts -->
    <script src="js/jquery-2.1.1.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/plugins/bootbox/bootbox.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    function clickHandler(){
    	var key = $("#key").val();
    	$.ajax({
    		type: "post",
			url: ctx + "/groupEmployee/empGroupScript",
			data:{key:key},
			dataType: "json",
			success: function(msg){
				if (msg.code == 1) {
					bootbox.alert(msg.message);
					$("#key").val("")
				}else{
					bootbox.alert(msg.message);
					$("#key").val("")
				}
			}
    	});
    }
    </script>

</body>

</html>
